//
//  TTProbabilityBasedAlgorithm.h
//  iBeaconDemo
//
//  Created by cry on 17/1/11.
//  Copyright © 2017年 eGova. All rights reserved.
//

#import "TTPositionLocalizationAlgorithm.h"
@class TTFilter;
@interface TTProbabilityBasedAlgorithm : TTPositionLocalizationAlgorithm

- (instancetype)initWithRoomMap:(TTRoomMap *)roommap
                      receivers:(NSMutableArray<TTReceiver *> *)receivers
                          xFrom:(double)xFrom
                            xTo:(double)xTo
                          yFrom:(double)yFrom
                            yTo:(double)yTo
                              a:(NSInteger)a
                              n:(double)n
                         filter:(TTFilter *)filter;

- (void)setProbabilityMapForReceiver:(TTReceiver *)receiver
           signalPropagationConstant:(double)signalPropagationConstant
              signalStrengthOneMeter:(NSInteger)signalStrengthOneMeter
                               xFrom:(double)xFrom
                                 xTo:(double)xTo
                               yFrom:(double)yFrom
                                 yTo:(double)yTo
                         granularity:(double)granularity;

- (TTPoint *)calculate:(NSMutableDictionary<NSString *,NSNumber *> *)readings;

@end
